import request from "@/utils/request"

export function listSku(data) {
  return request({
    url: '/business/sku/list',
    method: 'post',
    data: data,
    headers: Object.assign({ DS: 'oracle'}, request.headers)
  })
}

export function listPacket(pluid) {
  return request({
    url: '/business/sku/packet/' + pluid,
    method: 'get',
    headers: Object.assign({DS: 'oracle'}, request.headers),
  })
}

export function listContract(pluid) {
  return request({
    url: '/business/sku/contract/' + pluid,
    method: 'get',
    headers: Object.assign({ DS: 'oracle' }, request.headers)
  })
}

export function sync(custId) {
  return request({
    url: '/business/sku/sync/'+custId,
    method: 'post',
    headers: Object.assign({ DS: 'oracle' }, request.headers)
  })
}
